package com.feicheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hao.zhang
 * @since 2022-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OutboundHeader implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 出库头id
     */
    @TableId(value = "outbound_header_id",type = IdType.AUTO)
    private Integer outboundHeaderId;

    /**
     * 出库商品日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    /**
     * 出库批次号
     */
    private String batchNo;

    /**
     * 对应销售订单id
     */
    private Integer saleId;

    /**
     * 对应仓库id
     */
    private Integer warehouseId;

    /**
     * 对应员工信息id
     */
    private Integer userId;


}
